import request from '@/utils/request'


export default{
    // 商家端核消记录
    writeOffList(page, size, keyword) {
        return request({
            url: `manage/shopClient/index/verifyList?page=${page}&size=${size}&keyword=${keyword}`,
            method: 'get',
        })
    },

    // 后台-核消记录
    writeVerifyListList(page,size,keyword,shop_id) {
        return request({
            url: `manage/ticket/ticket/verifyList?page=${page}&size=${size}&keyword=${keyword}&shop_id=${shop_id}`,
            method: 'get',
        })
    },

    // 商家端快捷核码查询
    writeOffQuery(code) {
        return request({
            url: `manage/shopClient/index/checkTicket?code=${code}`,
            method: 'get',
        })
    },
    // 商家端快捷核码
    writeOff(data) {
        return request({
            url: `manage/shopClient/index/batchVerify`,
            method: 'post',
            data:data
        })
    },
    writeRollback(data){
        return request({
            url: `manage/ticket/ticket/ticketRollback`,
            method: 'post',
            data:data
        })
    }
}
